<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Date_of_visit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-date_of_visit" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[date_of_visit]" type="text" value="{$row.date_of_visit}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="sexDataList" item="vo"}
            <label for="row[sex_data]-{$key}"><input id="row[sex_data]-{$key}" name="row[sex_data]" type="radio" value="{$key}" {in name="key" value="$row.sex_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contact')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact" class="form-control" name="row[contact]" type="text" value="{$row.contact|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Visiting_form_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="visitingFormDataList" item="vo"}
            <label for="row[visiting_form_data]-{$key}"><input id="row[visiting_form_data]-{$key}" name="row[visiting_form_data]" type="radio" value="{$key}" {in name="key" value="$row.visiting_form_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Visiting_form_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-visiting_form_num" class="form-control" name="row[visiting_form_num]" type="text" value="{$row.visiting_form_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_hose_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="buyHoseDataList" item="vo"}
            <label for="row[buy_hose_data]-{$key}"><input id="row[buy_hose_data]-{$key}" name="row[buy_hose_data]" type="radio" value="{$key}" {in name="key" value="$row.buy_hose_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-house_area" class="form-control" name="row[house_area]" type="text" value="{$row.house_area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Intentional_building')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-intentional_building" class="form-control" name="row[intentional_building]" type="text" value="{$row.intentional_building|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Intentional_floor')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-intentional_floor" class="form-control" name="row[intentional_floor]" type="text" value="{$row.intentional_floor|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dongxihu')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dongxihu" class="form-control" name="row[dongxihu]" type="text" value="{$row.dongxihu|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Donghu_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="donghuDataList" item="vo"}
            <label for="row[donghu_data]-{$key}"><input id="row[donghu_data]-{$key}" name="row[donghu_data]" type="radio" value="{$key}" {in name="key" value="$row.donghu_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xihu_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="xihuDataList" item="vo"}
            <label for="row[xihu_data]-{$key}"><input id="row[xihu_data]-{$key}" name="row[xihu_data]" type="radio" value="{$key}" {in name="key" value="$row.xihu_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Intentional_house_type_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="intentionalHouseTypeDataList" item="vo"}
            <label for="row[intentional_house_type_data]-{$key}"><input id="row[intentional_house_type_data]-{$key}" name="row[intentional_house_type_data]" type="radio" value="{$key}" {in name="key" value="$row.intentional_house_type_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Satisfaction_level_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="satisfactionLevelDataList" item="vo"}
            <label for="row[satisfaction_level_data]-{$key}"><input id="row[satisfaction_level_data]-{$key}" name="row[satisfaction_level_data]" type="radio" value="{$key}" {in name="key" value="$row.satisfaction_level_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Garage_num_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="garageNumDataList" item="vo"}
            <label for="row[garage_num_data]-{$key}"><input id="row[garage_num_data]-{$key}" name="row[garage_num_data]" type="radio" value="{$key}" {in name="key" value="$row.garage_num_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price_willingness')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price_willingness" class="form-control" name="row[price_willingness]" type="text" value="{$row.price_willingness|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Purchase_cycle_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="purchaseCycleDataList" item="vo"}
            <label for="row[purchase_cycle_data]-{$key}"><input id="row[purchase_cycle_data]-{$key}" name="row[purchase_cycle_data]" type="radio" value="{$key}" {in name="key" value="$row.purchase_cycle_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_method_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="payMethodDataList" item="vo"}
            <label for="row[pay_method_data]-{$key}"><input id="row[pay_method_data]-{$key}" name="row[pay_method_data]" type="radio" value="{$key}" {in name="key" value="$row.pay_method_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number_of_properties')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-number_of_properties" data-rule="required" class="form-control selectpicker" name="row[number_of_properties]">
                {foreach name="numberOfPropertiesList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.number_of_properties"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Know_the_way_data')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="knowTheWayDataList" item="vo"}
            <label for="row[know_the_way_data]-{$key}"><input id="row[know_the_way_data]-{$key}" name="row[know_the_way_data]" type="radio" value="{$key}" {in name="key" value="$row.know_the_way_data"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Make_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-make_num" class="form-control" name="row[make_num]" type="number" value="{$row.make_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_transaction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_transaction" class="form-control" name="row[is_transaction]" type="text" value="{$row.is_transaction|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales_representative')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_representative" class="form-control" name="row[sales_representative]" type="text" value="{$row.sales_representative|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Watch_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-watch_status" class="form-control " rows="5" name="row[watch_status]" cols="50">{$row.watch_status|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
